package main

import (
	"http"
	"io"
	"log"
)

func SayHello(w http.ResponseWriter, r *http.Request) {
	io.WriteString(w, "Hello World")
}

func main() {
	http.HandleFunc("/", SayHello)
	err := http.ListenAndServe(":3001", nil)
	if err != nil {
		log.Fatalf("Error while starting server. Cause: %v", err)
	}
}
